﻿using Furion;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using GWB.Application.Dome.Dtos;
using GWB.Core;
using GWB.Core.TableEntity;
using Mapster;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GWB.Application.Dome
{

    [ApiDescriptionSettings("测试", Tag = "测试")]
    public class TabletAppService : IDynamicApiController
    {
        private readonly ITsetsService _tsetApplication;

      
        public TabletAppService()
        {
            _tsetApplication = App.GetService<ITsetsService>();
        }

        [AllowAnonymous]
        public async Task<object> Test(long id, int num)
        {
            return await _tsetApplication.Test( id,  num);
        }


        [AllowAnonymous]
        public async Task<Result> aaaaa(string inputDto)
        {
            return await _tsetApplication.GetResult();
        }
        [AllowAnonymous]
        [HttpPost]
        public async Task<object> GetResult1(InputDto input)
        {
            return await _tsetApplication.GetResult1();
        }

        [AllowAnonymous]
        public async Task<object> GetResult2()
        {
            return null;
        }


        public string Get()
        {
            return $"GET 请求";
        }

        public string Post()
        {
            return $"POST 请求";
        }

        public string Delete()
        {
            return $"DELETE 请求";
        }

        public string Put()
        {
            return $"PUT 请求";
        }

        public string Patch()
        {
            return $"PATCH 请求";
        }
    }
}
